package com.hdax.ssm.service.impl;

import com.hdax.ssm.dao.PermissionDao;
import com.hdax.ssm.entity.Permission;
import com.hdax.ssm.service.PermissionService;
import com.hdax.ssm.vo.PermissionBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private PermissionDao permissionDao;
    @Override
    public List<Permission> getPermissionByIds(List<Long> ids) {
        return permissionDao.getPermissionByIds(ids);
    }

    @Override
    public List<PermissionBean> getPermissionByParentId(long parentId) {
        return permissionDao.getPermissionByParentId(parentId);
    }
}
